const { router } = require("../../koa/koa-main");
const { getBook } = require("../../services/book");

router.get('/getBook', async (ctx, next) => {
  const { data } = await getBook(ctx.request.query)
  ctx.response.body = data
  await next()
})
